home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Magazine 28 Bonus
/
CDRomMagazine-SoftKey-ArtPassion-FrenchVersion-Win31Mac.bin
/
data
/
shared.dir
/
03054_Script_BACK BUTTON
< prev
next >
Wrap
Text File
|
1996-06-21
|
1KB
|
41 lines
-- --------------------------------------------------------
-- Handler checkBackButtonRoll checks if the user rolled
-- over the back button
on checkBackButtonRoll mousePoint
global backButtonRect
if (inside(mousePoint, backButtonRect)) then
hiliteBackButton
else if (NOT inside(mousePoint, backButtonRect)) then
unhiliteBackButton
end if
end
-- --------------------------------------------------------
-- Handler hiliteBackButton hilites the back button if the
-- user rolled over it
on hiliteBackButton
global backSprite, backH, backV
puppetSprite backSprite, TRUE
set the castNum of sprite backSprite = the number of cast "backH"
set the locH of sprite backSprite = backH
set the locV of sprite backSprite = backV
set the height of sprite backSprite = the height of cast "backH"
set the width of sprite backSprite = the width of cast "backH"
updateStage
end
-- --------------------------------------------------------
-- Handler unhiliteBackButton unhilites the back button if the
-- user rolled over it
on unhiliteBackButton
puppetSprite backSprite, TRUE
global backSprite
removeFromStage(backSprite)
puppetSprite backSprite, FALSE
end